import { http } from '@/utils/http'

export function useContractSignApi() {
  return {
    // 根据项目编号获得虚拟合同
    getVirtualByProjectNumber(projectNumber: string) {
      return http.get<VirtualContractForm>('/prod-api/admin-api/project/contract-signing/virtual/getByProjectNumber?projectNumber=' + projectNumber)
    },
    // 获得合同签订
    getContractSigning(id: string) {
      return http.get<FormalContractForm>('/prod-api/admin-api/project/contract-signing/get?id=' + id)
    },
    // 根据项目编号获得合同签订
    getContractSigningByProjNum(projectNumber: string) {
      return http.get<FormalContractForm>('/prod-api/admin-api/project/contract-signing/getByProjectNumber?projectNumber=' + projectNumber)
    },
  }
}
